//
//  PostBaseNetWork.m
//  PostDelivery
//
//  Created by wmz on 2020/6/28.
//  Copyright © 2020 wmz. All rights reserved.
//

#import "PostBaseNetWork.h"
@implementation PostBaseNetWork
/** 单例对象 */
+ (instancetype)shareInstance {
    Class selfClass = [self class];
    id instance = objc_getAssociatedObject(selfClass, @"shareObject");
    if (!instance) {
        instance = [[super allocWithZone:NULL] init];
        objc_setAssociatedObject(selfClass, @"shareObject", instance, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
    }
    return instance;
}

+ (id)allocWithZone:(struct _NSZone *)zone {
    Class class = [self class];
    return [class shareInstance];
}
- (id)copyWithZone:(struct _NSZone *)zone {
    Class class = [self class];
    return [class shareInstance];
}
@end
